const { defineConfig } = require("@vue/cli-service");

module.exports = defineConfig({
  lintOnSave: false,
  transpileDependencies: true,
  devServer: {
    client: {
      overlay: {
        runtimeErrors: (error) => {
          if (error.message.includes("ResizeObserver loop")) {
            return false;
          }
          return true;
        },
      },
    },
    proxy: {
      "/api": {
        target: "http://192.168.100.167:8080",
        changeOrigin: true,
      },
    },
    hot: true, // 热加载
    open: true, // 自动打开浏览器
  },
});
